var dgram = require('dgram');

var message = new Buffer("你好");

var client = dgram.createSocket('udp4');


client.send(message, 0, message.length, 41234, '192.168.1.100', function(err, bytes){
	if(err) console.log('发送数据失败');
	else console.log('已发送%d字节数据', bytes);
});

client.on('message', function(msg, rinfo){
	console.log("已接收服务器端发送的数据：%s", msg);
});


client.bind(41235, '192.168.1.102');
